package elitech.vietnam.weatherfashion.tabs.zoompager;

import java.util.List;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentStatePagerAdapter;
import elitech.vietnam.weatherfashion.dto.ProductDTO;

public class MyCustomPagerAdapter extends FragmentStatePagerAdapter {

	private List<ProductDTO> items;
	
	public MyCustomPagerAdapter(FragmentManager fm, List<ProductDTO> items) {
		super(fm);
		this.items = items;
	}

	@Override
	public Fragment getItem(int arg0) {
		return ZoomPagerItemFragment.init(items.get(arg0));
	}

	@Override
	public int getCount() {
		return items.size();
	}
}
